import http from "./http";

/* ---登录注册--- */
export const httpGetPhoneAreaCode = (params) =>
  http.get("/api/tool/get_mobile_area_code", params); // 获取手机区号,所属国家
export const httpSmsSend = (params) => http.post("/api/tool/sms_send", params); // 手机获取验证码
export const httpEmailSend = (params) =>
  http.post("/api/tool/email_send", params); // 获取邮箱验证吗
export const httpMobileLogin = (params) =>
  http.post("/api/user/password_login", params); // 手机登录
export const httpMobileRegister = (params) =>
  http.post("/api/user/register", params); // 手机注册
export const httpChangePassword = (params) =>
  http.post("/api/user/change_password", params); // 更改密码
export const httpForgetRegister = (params) =>
  http.post("/api/user/forgot_password", params); // 忘记密码
export const httpTradePassword = (params) =>
  http.post("/api/user/tradePassword", params); // 设置交易密码

/* ---消息通知--- */
export const httpNoticeList = (params) => http.get("/api/message/list", params); // 消息通知
export const httpReceive = (params) =>
  http.post("/api/message/receive_message_diamond", params); // 领取奖品

/* ---账户中心--- */
export const httpAssetChangeRecords = (params) =>
  http.get("/api/shop/orders", params); // 账单流水

/* ---用户中心--- */
export const httpCertificationAddAndUpdate = (params) =>
  http.post("/api/user/certificationAddAndUpdate", params); // 提交认证
export const httpIsCertification = (params) =>
  http.get("/api/user/certificationInfo", params); // 是否认证
export const httpInfo = (params) => http.get("/api/user/info", params); // 用户信息
export const httpWhatsapp = (params) => http.get("/api/tool/whatsapp", params); // 获取whatsapp号码
export const httpImgUpload = (params) =>
  http.post("/api/tool/img_upload", params); // 上传照片
export const httpIdVerify = (params) =>
  http.post("/api/user/id_verify", params); //实名认证

export const httpIdInfo = (params) => http.post("/api/user/id_info", params);

export const httpIpLocation = (params) =>
  http.get("/api/tool/ipLocation", params); // 获取当前ip信息
export const httpWithdrawSubmit = (params) =>
  http.post("/api/withdrawal/submit", params); // 提现
// export const httpMyRecord = params => http.post('/api/invitation/myRecord?current_page=' + params.current_page, params);                                // 我的邀请记录
export const httpMyRecord = (params) =>
  http.post(
    `/api/invitation/myRecord?current_page=${params.current_page}&level=${params.level}`,
    params
  ); // 我的邀请记录
export const httpMyReward = (params) =>
  http.post(
    "/api/invitation/myReward?current_page=" + params.current_page,
    params
  ); // 我的奖励
export const httpUserInvitation = (params) =>
  http.get("/api/invitation/userInvitation", params); // 我的奖励
export const httpWithdrawInfo = (params) =>
  http.get("/api/withdraw/withdrawInfo", params); // 提现信息
export const httpWithdrawFee = (params) =>
  http.get("/api/withdraw/fee", params); // 提现历史
export const httpFeedBackAdd = (params) =>
  http.post("/api/user/feedback_add", params); // 用户反馈

/* ---游戏--- */
export const httpHomeRecommend = (params) =>
  http.get("/api/game/home_recommend", params); // 首页banner
export const httpHomeBanner = (params) =>
  http.get("/api/game/home_banner", params); // 首页banner
export const httpGameBalance = (params) =>
  http.get("/api/game/balance", params); // 金币钻石余额
export const httpGameClass = (params) => http.get("/api/game/category", params); // 游戏分类
export const httpHomeList = (params) => http.get("/api/game/list", params); // 首页游戏列表
export const httpGameList = (params) => http.get("/api/game/list", params); // 游戏列表
export const httpSearchGame = (params) =>
  http.get("/api/game/searchGame", params); // 搜索
export const httpPrepareEnterGame = (params) =>
  http.get("/api/game/prepareEnterGame", params); // 准备进入游戏
export const httpTransferChip = (params) =>
  http.post("/api/shop/exchange_chip", params); // 兑换转账
export const httpEnterGame = (params) => http.get("/api/game/enter", params); // 进入游戏

export const httpExchangeGames = (params) =>
  http.get("/api/shop/exchange_games", params); //兑换游戏列表
/* ---支付--- */
export const httpOrderCreate = (params) =>
  http.post("/api/pay/orderCreate", params); // 创建订单
export const httpPlaceOrder = (params, options) =>
  http.post("/api/pay/place_order", params, options); // 支付下单
export const httpGetChannel = (params) => http.get("/api/pay/way", params); // 获取支付通道
export const httpWithdrawalWay = (params) =>
  http.get("/api/withdrawal/way", params); // 获取提现方式
export const httpGetHistoryChannel = (params) =>
  http.get("/api/pay/getHistoryChannel", params); // 获取历史支付通道
export const httpDelHistoryChannel = (params) =>
  http.get("/api/pay/delHistoryChannel", params); // 删除历史支付通道
export const httpGoodsList = (params) =>
  http.get("/api/shop/goods_list", params); // 获取充值商品列表
/* ---提现--- */
export const httpWithdrawalTips = (params) =>
  http.get("/api/withdrawal/tip", params); //金币兑换钻石提示
export const httpExchangeTips = (params) =>
  http.get("/api/withdrawal/exchange", params); //兑换
/* ---代理返利--- */
export const httpAgentHome = (params) =>
  http.get("/api/user/agent/home", params); //代理首页
export const httpAgentRecharge = (params) =>
  http.post("/api/user/agent/recharge", params); //代理充值
export const httpAgentInviteList = (params) =>
  http.get("/api/user/agent/invite_list", params); //代理邀请列表
export const httpAgentRechargeRebate = (params) =>
  http.get("/api/user/agent/recharge_rebate", params); //代理充值返利
export const httpGetBindBank = (params) =>
  http.get("/api/withdrawal/get_bind_bank", params); //代理充值返利
export const httpWalletBalance = (params) =>
  http.get("/api/wallet/balance", params); //钱包余额
export const httpWalletRecords = (params) =>
  http.get("/api/wallet/records", params); //账户流水
export const httpWalletBills = (params) =>
  http.get("/api/wallet/bills", params); //账户记录
export const httpWalletAddress = (params) =>
  http.get("/api/wallet/address", params); //钱包充值地址
export const httpWalletBind = (params) => http.post("/api/wallet/bind", params); //绑定钱包
export const httpWalletRecharge = (params) =>
  http.post("/api/wallet/recharge", params); //充值
export const httpWalletWithdraw = (params) =>
  http.post("/api/wallet/withdraw", params); //提现
export const httpWalletSend = (params) => http.post("/api/wallet/send", params); //发送
export const httpGetWalletSend = (params) =>
  http.get("/api/wallet/send", params); //发送

/* ---登录注册--- */
// export const httpGetPhoneAreaCode = params => http.get('/api/tool/getPhoneAreaCode', params);       // 获取手机区号,所属国家
// export const httpSmsSend = params => http.post('/api/tool/smsSend', params);                        // 手机获取验证码
// export const httpMobileLogin = params => http.post('/api/user/mobileLogin', params);                // 手机登录
// export const httpMobileRegister = params => http.post('/api/user/mobileRegister', params);          // 手机注册
// export const httpChangePassword = params => http.post('/api/user/changePassword', params);          // 更改密码
// export const httpForgetRegister = params => http.post('/api/user/forgetRegister', params);          // 忘记密码
// export const httpTradePassword = params => http.post('/api/user/tradePassword', params);            // 设置交易密码

/* ---消息通知--- */
// export const httpNoticeList = params => http.get('/api/user/noticeList', params);               // 消息通知

/* ---账户中心--- */
// export const httpAssetChangeRecords = params => http.get('/api/user/assetChangeRecords', params);   // 账单流水

/* ---用户中心--- */
// export const httpCertificationAddAndUpdate = params => http.post('/api/user/certificationAddAndUpdate', params);    // 提交认证
// export const httpIsCertification = params => http.get('/api/user/certificationInfo', params);                       // 是否认证
// export const httpInfo = params => http.get('/api/user/info', params);                                               // 用户信息
// export const httpImgUpload = params => http.post('/api/tool/imgUpload', params);                                    // 上传照片
// export const httpIpLocation = params => http.get('/api/tool/ipLocation', params);                                   // 获取当前ip信息
// export const httpWithdrawSubmit = params => http.post('/api/withdraw/withdrawSubmit', params);                      // 提现
// export const httpMyRecord = params => http.post('/api/invitation/myRecord?current_page=' + params.current_page, params);                                // 我的邀请记录
// export const httpMyRecord = params => http.post(`/api/invitation/myRecord?current_page=${params.current_page}&level=${params.level}`, params);                                // 我的邀请记录
// export const httpMyReward = params => http.post('/api/invitation/myReward?current_page=' + params.current_page, params);                                // 我的奖励
// export const httpUserInvitation = params => http.get('/api/invitation/userInvitation', params);                     // 我的奖励
// export const httpWithdrawInfo = params => http.get('/api/withdraw/withdrawInfo', params);                           // 提现信息
// export const httpWithdrawFee = params => http.get('/api/withdraw/fee', params);                                     // 提现历史

/* ---游戏--- */
// export const httpHomeBanner = params => http.get('/api/game/homeBanner', params);                      // 首页banner
// export const httpGameClass = params => http.get('/api/game/class', params);                            // 游戏分类
// export const httpHomeList = params => http.get('/api/game/homeList', params);                          // 首页游戏列表
// export const httpGameList = params => http.get('/api/game/list', params);                              // 游戏列表
// export const httpSearchGame = params => http.get('/api/game/searchGame', params);                      // 搜索
// export const httpPrepareEnterGame = params => http.get('/api/game/1/prepareEnterGame', params);        // 准备进入游戏
// export const httpTransferChip = params => http.post('/api/game/1/transferChip', params);               // 兑换转账
// export const httpEnterGame = params => http.post('/api/game/1/enterGame', params);                     // 进入游戏

/* ---支付--- */
// export const httpOrderCreate = params => http.post('/api/pay/orderCreate', params);                    // 创建订单
// export const httpFastpayCreate = params => http.post('/api/pay/fastpayCreate', params);                // fastpay支付
// export const httpIpasspayCreate = params => http.post('/api/pay/ipasspayCreate', params);              // ipasspay支付
// export const httpUsdtCreate = params => http.post('/api/pay/usdtCreate', params);                      // usdt支付
// export const httpGetChannel = params => http.get('/api/pay/getChannel', params);                       // 获取支付通道
// export const httpGetHistoryChannel = params => http.get('/api/pay/getHistoryChannel', params);         // 获取历史支付通道
// export const httpDelHistoryChannel = params => http.get('/api/pay/delHistoryChannel', params);         // 删除历史支付通道
